// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(12,3) == 0 && gf(11,1) == 0;
	question = "special";
	text1 = "You enter Haria-Kel. It is quite similar to Isenwood's Spire, a large, underground complex where the Shapers can do their work isolated from nosy outsiders.";
	text2 = "Haria-Kel is different in several ways. First, it is far, far older. The stone blocks of the walls show many centuries of wear and mineral buildup. There has been a settlement here since before the age of the Shapers.";
	text3 = "The Shapers have made their mark, though. They have created many little plots of land, each of which has strange fungal plants growing in it. The plants seem to breathe, sucking stale cave air into the bladders and exhaling fresh air.";
	text4 = "A long pair of crystal conduits loops through the complex, carrying a constant supply of power to the Shapers for their experiments. The conduits keep the atmosphere oppressively hot and humid.";
	text5 = "This is the fortress of Astoria, member of the Council. You feel the power of the Shapers very strongly in this place.";
	action = SET_SDF 12 3 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(12,4) == 0;
	question = "special";
	text1 = "You emerge from a long, narrow concealed tunnel and look around. You are in Haria-Kel, in one of the main power stations.";
	text2 = "The technicians who designed this machinery must have had serviles dig out the tunnel you just passed through as an escape route. In case it all blew up, they wanted a way out.";
	text3 = "It is searingly hot in here. The stone of the walls and floors burns to the touch. This must be a key juncture for the power system.";
	action = SET_SDF 12 4 1;
	code =
		sf(12,3,1);
	break;
	
begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(12,5) == 0;
	question = "special";
	text1 = "The side corridor here has a bed of jagged stones in it. Some of the power from the conduits leaches into them, making them red hot. They are here to heat the caves. They do too good a job.";
	text2 = "Trying to walk on them while they are still red hot would be very dangerous. Probably fatal.";
	action = SET_SDF 12 5 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This ceramic jar contains nothing but trash and a few scraps of ash. It looks like someone burned up some papers in the brazier and dumped the remains here.";
	text2 = "You inspect the ashes closely and have a rare and unaccustomed stroke of luck. Someone was careless in their haste. A scrap of paper remained charred but barely legible.";
	text3 = "It reads, _... can escape easily in the fire and confusion. Flee to the Murkwood and we will contact you and spirit ..._";
	code =
		if (gf(12,7) == 0) {
			sf(12,7,1);
			}
			else {
				rs(3); rs(2);
				}
	break;
	
begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Astoria directs a powerful charge into the crystals to either side, intending to direct the power at you. It doesn't work out that way.";
	text2 = "Since you removed the safety mechanisms that limited the power flow, more power than she intended flows into the crystals. The cracks you placed in them causes them to vibrate.";
	text3 = "Soon they begin to resonate, the vibrations traveling from one machine to the other and back. When Astoria realizes what you have done, she tries to reverse the process. It is too late.";
	text4 = "A surge of power reflects back into Astoria, covering her skin with horrible burns. She tries to get away, but she is held in place. The crystals are about to explode ...";


begintalknode 10; 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The assassin falls to the floor, dead. Astoria walks over and nudges the body with her toe. Then she bends down and removes something from around his neck.";
	text2 = "She returns to her throne.";

begintalknode 11;
	state = -1;
	nextstate = -1;
	condition = get_sdf(12,12) == 0 && gf(11,1) == 0;
	question = "special";
	text1 = "Each of these alcoves contains a huge crystal, taller than you, with smoothly polished sides. A pair of Shapers stares into each crystal, concentrating on something.";
	text2 = "Inside the crystals, you can see dim, flickering shapes. Moving closer, you can see that the Shapers are watching creations. These are the images of battle creations, each somewhere distant, on patrol or hunting for rogues.";
	text3 = "Devices like this are rare and powerful. Using them, a Shaper can send creations far afield and still maintain total control over them. Using these crystals, a handful of Shapers can command an army.";
	action = SET_SDF 12 12 1;

begintalknode 12;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The Shaper is concentrating on the creations visible in the stone. You try to start a conversation but receive only an angry snarl in return. This job requires great focus.";

begintalknode 13;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The outsider guards in Haria-Kel seem very nervous.";
	text2 = "You try to speak with them, but they simply say that Astoria wants to see you. Her hall is to the northeast. They suggest that keeping a Councilor waiting is unwise.";
	text3 = "It's not a surprise, considering that an assassin just struck here, the place they'd always imagined was completely safe.";
	text4 = "You try to speak with them, but they suggest that you find Captain Herszen instead.";
	code =
		if (gf(12,1) == 0) {
			rs(3); rs(4);
			}
			else rs(2);
		break;

begintalknode 14;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This creation stares straight ahead and ignores you. You are unable to distract it or get its attention. The Shaper who made it has it under absolute control.";

begintalknode 15;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 20;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This device taps directly into the crystal conduit that loops through the entire complex. A skilled Shaper can draw power directly from it, using it to fuel experiments or acts of creation.";
	text2 = "You don't have the correct training. All you can do here is incinerate yourself. You keep away.";
	text3 = "Unfortunately, your earlier sabotage has left the device very unstable. When you get close, the vibrations caused by your presence destabilize the device. It begins to overload.";
	text4 = "You can't get close to it. It is too hot and sparky.";
	code =
		if (gf(12,23) < 2) {
			rs(3); rs(4);
			}
			else if (gf(10,15) == 0) {
				sf(10,15,1);
				rs(2); rs(4);
				}
				else {
					rs(2); rs(3);
					}
	break;

begintalknode 21;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This device taps directly into the crystal conduit that loops through the entire complex. A skilled Shaper can draw power directly from it, using it to fuel experiments or acts of creation.";
	text2 = "You don't have the correct training. All you can do here is incinerate yourself. You keep away.";
	text3 = "Unfortunately, your earlier sabotage has left the device very unstable. When you get close, the vibrations caused by your presence destabilize the device. It begins to overload.";
	text4 = "You can't get close to it. It is too hot and sparky.";
	code =
		if (gf(12,23) < 2) {
			rs(3); rs(4);
			}
			else if (gf(10,16) == 0) {
				sf(10,16,1);
				rs(2); rs(4);
				}
				else {
					rs(2); rs(3);
					}
	break;

begintalknode 22;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This device taps directly into the crystal conduit that loops through the entire complex. A skilled Shaper can draw power directly from it, using it to fuel experiments or acts of creation.";
	text2 = "You don't have the correct training. All you can do here is incinerate yourself. You keep away.";
	text3 = "Unfortunately, your earlier sabotage has left the device very unstable. When you get close, the vibrations caused by your presence destabilize the device. It begins to overload.";
	text4 = "You can't get close to it. It is too hot and sparky.";
	code =
		if (gf(12,23) < 2) {
			rs(3); rs(4);
			}
			else if (gf(10,17) == 0) {
				sf(10,17,1);
				rs(2); rs(4);
				}
				else {
					rs(2); rs(3);
					}
	break;

begintalknode 23;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This device taps directly into the crystal conduit that loops through the entire complex. A skilled Shaper can draw power directly from it, using it to fuel experiments or acts of creation.";
	text2 = "You don't have the correct training. All you can do here is incinerate yourself. You keep away.";
	text3 = "Unfortunately, your earlier sabotage has left the device very unstable. When you get close, the vibrations caused by your presence destabilize the device. It begins to overload.";
	text4 = "You can't get close to it. It is too hot and sparky.";
	code =
		if (gf(12,23) < 2) {
			rs(3); rs(4);
			}
			else if (gf(10,18) == 0) {
				sf(10,18,1);
				rs(2); rs(4);
				}
				else {
					rs(2); rs(3);
					}
	break;
	
			
//

begintalknode 30;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "Name";
	text1 = "You enter a huge hall, crammed with crystal spires, machinery, and other tools of the Shapers. The air is hot and stale. The odd, fungal plants in the corner strain to keep it breathable.";
	text2 = "And yet, the Agent in the throne at the center of it all is completely unaffected. She seems calm and relaxed, not even sweating in the powerful heat. She smiles calmly when she sees you.";
	text3 = "She was about to speak with a man sitting in a bench at the far end of the room. She waves him back and points at you.";
	text4 = "_You. From the Whitespires. Rawal's creature. Step forward. I am eager to meet you._";
	text5 = "You don't seem to have a choice. You enter.";
	code =
		toggle_quest(6,3);
	break;

begintalknode 32;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "";
	text1 = "The Agent inspects you closely. _Very interesting. Very intriguing. I can see why Shaper Rawal set you aside._";
	text2 = "_I am Astoria, Agent and full member of the Shaper Council. You have shown some courage coming here, leaving the protection of your master. Of course, now that you are here, you do not have to serve him._";
	text3 = "You are dimly aware of the man sitting on the bench to the east. He is growing increasingly anxious. He must be annoyed that Astoria is speaking with you first.";
	text4 = "_Shaper Rawal is far away. He cannot command you. At this point, competent servants who know the secrets of other members of the Council are much in demand._";
	text5 = "_In these strange times, even a servile like yourself can gain wealth and influence. If earned._";
	code =
		if (creature_type(pc_num()) != 46) 
			rs(5);
	break;
	

begintalknode 33;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "You knew that I was coming?";
	text1 = "_The members of the Council watch each other closely. Warily. Only rarely does one of us send an ... What is a polite word? Emissary? Into the land of another._";
	text2 = "_It is noteworthy when this happens. And noticed._";

begintalknode 34;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "I do not work for Rawal.";
	text1 = "Astoria frowns. _Do not insult me. I will not tolerate it._";
	text2 = "_You think we do not know about Rawal's research? The worms he puts in the hearts of his servants? I know how he controls you. I can smell it on you._";
	code =
		if (gf(100,8) > 0)
			rs(2);
	break;
	
begintalknode 35;
	state = 30;
	nextstate = 31;
	condition = 1;
	question = "What do you want from me?";
	text1 = "_We speak in private here. You are safe from Rawal. What happens here is in confidence. He can pay you. I can pay you more. I ..._";
	text2 = "The man sitting off to the side can bear no more. He jumps to his feet.";
	action = END_TALK;
	
begintalknode 36;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "The man walks forward boldly. He looks frail and old, but his stride is quick and confident. Councilor Astoria turns and looks at him, irritated.";
	text2 = "_You dare to interrupt me, Baston? I will hear Sharissa's message soon enough. The business of the Nodye Coast can wait for ..._";
	text3 = "The man interrupts her. He doesn't say anything. He pulls a glowing orb out of his robe.";
	text4 = "There is a long silence. Everyone looks at the orb. Astoria seems to recognize it instantly. Then he throws it at the floor ...";



begintalknode 38;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "The orb explodes into a thousand glass fragments. A mist rises from the wreckage. The distinctive vinegar smell of fresh essence fills the air. Then, a moment later, several creations have taken form around Baston.";
	text2 = "He shouts, _Traitor! Traitor to the Shaper cause! Betrayer of us all! Now you die!_";
	text3 = "Astoria's guard run to attack. Astoria smiles calmly.";

begintalknode 40;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "Astoria makes a brief motion with her left hand. The devices to her right and left begin to glow ...";

begintalknode 42;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "The assassin dead, Astoria surveys the damage. She is still smiling, but you can recognize it as a false front. This attempt to murder her in her own throne room has shaken her.";
	text2 = "She turns to you. _Events are moving quickly. Faster than I thought. You work for Rawal. I suspect that you do not enjoy this employment._";
	text3 = "_There is a way out for you, but little time. If you want hope of freedom from that worm in the mountains, you should speak with me._";

	
begintalknode 45;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "Councilor Astoria crumples to the floor, mortally wounded. She looks up at you. You can see the look of despair on her face.";
	text2 = "_You ... fool. The war ... I could have ended it. I could have ... have ..._";
	text3 = "Then she closes her eyes. Her body goes limp. Whatever her wild plans, they will never happen now.";
	text4 = "You have killed a member of the Shaper Council. You have permanently earned the hatred of the Shapers and their allies.";
	code =
		if (gf(100,11) == 0) 
			sf(100,11,1);
			else rs(4);
	break;
		
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Captain Herszen";
	text1 = "You meet the commander of the Haria-Kel guard. He is pacing nervously in the entry hall, walking in circles around the strange plants.";
	text2 = "When you approach him, he gives you a little nod. He is an old warrior, clearly the survivor of many campaigns. When he raises the visor of his helm to greet you, you notice that his skin has an unusual reddish-brown hue.";
	text3 = "He says, _I am Captain Herszen. I welcome you to Haria-Kel, fortress of Astoria. Explore freely, but stay out of locked areas. You will be watched constantly. Any crimes will be punished rapidly and severely._";
	text5 = "Captain Herszen continues to pace around the entry hall. This seems to be a habit of his. It is what he does when he needs to think.";
	action = INTRO;

begintalknode 51;
	state = 50;
	nextstate = 51;
	condition = 1;
	question = "Where are you from?";
	text1 = "He chuckles. _From? I am from here. I am a proud descendant of the woods people. Most of the few that remain hide our past. I do not._";

	
begintalknode 52;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "Why do they hide their past?";
	text1 = "_Out of loyalty to the Shapers. Or fear of being thought disloyal. The woods people fought the Shapers once. Killed many of them. For some of us, memories are long._";
	
begintalknode 53;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "Who are the woods people?";
	text1 = "_We lived in these lands before the Shapers came. We are the ones who built Haria-Kel before they took it from us. Mera was our city. Tev was our word for woods. Mera-Tev was the name we gave these lands._";
	text2 = "_Many of us died. Most of the rest intermarried and faded away. A few of us that still clearly bear the blood of the woods people still remain._";
	
begintalknode 54;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "And you work for the Shapers?";
	text1 = "_The wars that took our lands were centuries ago. I can mourn a time lost and still understand that those days are gone forever._";
	text2 = "_Astoria is a wise leader. I swore an oath to her. I will fulfill this oath. She knows this._";
	
begintalknode 55;
	state = 50;
	nextstate = -1;
	condition = gf(12,1) == 0;
	question = "Where is Astoria?";
	text1 = "He points to the northeast. _The Great hall is there. Astoria is waiting for you. I am instructed to not delay you._";
	
begintalknode 56;
	state = 50;
	nextstate = -1;
	condition = gf(12,1) > 0;
	question = "What do you know about the assassination attempt?";
	text1 = "_I am carrying out my own investigations. I would ask that you not spread word of it. It would interfere with our search, and it would spread rumors and unease._";
	text3 = "_I am continuing to investigate, but I believe that you identified and dealt with the correct culprit._";
	action = DEP_ON_SDF 36 1 0;
	
begintalknode 57;
	state = 50;
	nextstate = -1;
	condition = gf(12,1) == 0;
	question = "As the guard commander, do you ever hire warriors to perform tasks?";
	text1 = "_I do, but Astoria wishes to see you. I would not delay you._";
	
begintalknode 58;
	state = 50;
	nextstate = 52;
	condition = gf(12,1) > 0 && gf(12,8) < 2;
	question = "As the guard commander, do you ever hire warriors to perform tasks?";
	text1 = "_I do. At times, I pay mercenaries and wanderers to do jobs that need doing but are low of priority. I do have just such a task._";

begintalknode 59;
	state = 52;
	nextstate = -1;
	condition = gf(12,8) == 0;
	question = "Busy right now. Sorry.";
	text1 = "_I understand. I will not delay you farther._";
	action = END_TALK;
	
begintalknode 60;
	state = 52;
	nextstate = 53;
	condition = 1;
	question = "I am interested.";
	text1 = "_Then I will tell you about the bandit Bennhold. A self-styled bandit king, though I feel he is simply a somewhat more effective thug with delusions of grandeur._";
	text2 = "_A mythology has sprung up about him. How he taunts the Shapers and they cannot catch him. And so on. It is entertaining for a certain sort of outsider._";
	text3 = "_There are rumors that Bennhold is hiding in the fens in the middle of the Mera-Tev. I would have you confirm or rebut these tales._";
	code = 
		set_flag(12,8,1);
		toggle_quest(47,1);
	break;
	
begintalknode 61;
	state = 53;
	nextstate = -1;
	condition = 1;
	question = "Is Bennhold a real person?";
	text1 = "_I don't know. I would like to know. If he is, I would prefer that he be killed._";

begintalknode 62;
	state = 53;
	nextstate = -1;
	condition = 1;
	question = "What does Bennhold do?";
	text1 = "_He robs. A typical highwayman. The only thing that makes him unusual is that he targets Shapers more than I would think wise._";

begintalknode 63;
	state = 53;
	nextstate = -1;
	condition = 1;
	question = "Any suggestions for where I should start my search?";
	text1 = "_I have heard that there has been bandit activity in the Murkwood, west of here. Real bandits, not fantasies._";
	text2 = "_If you encounter those bandits, you might question them before killing them. Find out if Bennhold really exists._";

begintalknode 64;
	state = 50;
	nextstate = -1;
	condition = gf(19,1) > 0 && gf(12,8) == 1;
	question = "I have hunted down the bandits in the fen. Bennhold was not among them. He is farther south.";
	text1 = "You tell Herszen the tale. He nods. _As I thought. Bennhold is not a fantasy, but he cannot be everywhere in Terrestia at once. If you find yourself in Perikalia, you should find the guard commander and share what you have learned._";
	text2 = "_Astoria would want to see you rewarded for your help._ He removes a pair of worn leather sandals from a satchel and hands them to you. _I know ... It looks like a miserable reward. Trust me. They bear a useful enchantment._";
	code = 
		set_flag(12,8,2);
		toggle_quest(47,3);
		award_party_xp(200,20);
		reward_give(155);
	break;		
	
begintalknode 65;
	state = 50;
	nextstate = -1;
	condition = gf(12,8) > 1;
	question = "Any more jobs to do?";
	text1 = "_Only whatever Astoria would ask of you. She is wise and kind. If you aid her, she will reward you well._";
	
//Astoria

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = "Councilor Astoria turns to face you. She seems slightly shaken by what has happened, but it only takes her a few minutes to completely regain her composure.";
	text2 = "As serviles shuffle into the room to start cleaning up the mess left by the battle, she says, _Now. As I was saying before we were interrupted._";
	text3 = "_If I am going to allow you to wander in my lands, I am going to expect something in return. A small consideration among members of the Council, if you will. And, after this attack, I know what I will require._";
	text5 = "Councilor Astoria sits in her throne, her arms out to either side. You notice that a long wisp of blue energy occasionally arcs across the air from the machinery to her hands.";
	text6 = "Though her attitude seems casual, you can tell that she is very alert. If someone else tries to assassinate her, she will be able to instantly defend herself.";
	action = INTRO;
	
begintalknode 71;
	state = 70;
	nextstate = 71;
	condition = gf(12,2) < 6;
	question = "What do you want from me?";
	text1 = "_Someone has been trying to kill me. The effort you witnessed first-hand was not the first attempt, but it was the most serious. Keeping this quiet and investigating cautiously is not enough._";
	text2 = "_I need to select someone to investigate more thoroughly. I will choose you. You are going to help me to find the one who plots against me._";
	text3 = "_I need to select someone to investigate more thoroughly. I have chosen you. You are going to help me hunt down whoever sent that assassin._";
	text4 = "_Anyone who dares attack a member of the Council must die._";
	code =
		if (gf(12,2) <= 3)
			rs(3);
			else rs(2);
	break;
	
begintalknode 72;
	state = 71;
	nextstate = 72;
	condition = 1;
	question = "Why are you choosing me?";
	text1 = "_A very good question. First, you are available. Second, based on your actions in the Foundry, you display courage and ingenuity._";
	text2 = "_Third, you are one of the few people available that I believe I can trust. I do not think that one of Rawal's agents would try to kill me._";

begintalknode 73;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "Shaper Rawal would not try to kill you?";
	text1 = "_There is little love among us members of the Council. Some of us see reality more than others. But assassination? Civil war? No, things are not at that point yet._";
	text2 = "_Also, as things stand, Shaper Rawal has more use for me alive than dead._ She doesn't elaborate.";

begintalknode 74;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "Why should I help you?";
	text1 = "_Shaper Rawal gave you a mission. I don't know what it is. I won't ask. However, if you refuse to aid me, I will make sure that you cannot complete it. You will never get past the Mera-Tev. I will ensure it._";
	text2 = "It's probably your imagination, but you can almost sense the tool in your chest twitching in anxiety.";
	text3 = "_At this point, while I dislike Rawal, I am not his sworn enemy. He will not punish you for keeping me alive._";
	code =
		if (gf(100,8) > 0)
			rs(2);
	break;

begintalknode 75;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "You hardly know me.";
	text1 = "_And you hardly know me. That is one of the reasons I will trust you for a time. There are some that hate me. You have not yet come to do so._";

begintalknode 76;
	state = 71;
	nextstate = -1;
	condition = 1;
	question = "Will I be rewarded for my help?";
	text1 = "_Of course. We Shapers pay well those that aid us. I will even make training available to you._";
	text2 = "_That I would make this privilege available to a servile is, of course, unusual. Most Shapers would never allow it. But I am not always in agreement with the other Shapers. This is, I suppose, why someone tried to kill me._";
	code =
		if (creature_type(pc_num()) != 46) 
			rs(2);
	break;

begintalknode 77;
	state = 71;
	nextstate = 73;
	condition = gf(12,2) < 1;
	question = "What must I do first?";
	text1 = "_The failed assassin said that his name was Baston. He said that he was from the Nodye Coast. I now doubt that any of this is true._";
	text2 = "_He was staying in one of the guest rooms. The guest rooms are to the south. I have had Baston's room unlocked. Go and see if you can find any hint of his true identity._";
	text3 = "_You should hurry, in case he had any allies who might try to destroy any surviving evidence._";
	code = 
		set_flag(12,2,1);
		set_flag(12,17,1);
		toggle_quest(48,1);
	break;
	
begintalknode 78;
	state = 73;
	nextstate = -1;
	condition = 1;
	question = "What did you find around Baston's neck?";
	text1 = "She chuckles. _A mistake, I think. Perhaps a sign he was caught unawares. We will see._ She doesn't intend to say anything else.";

begintalknode 79;
	state = 70;
	nextstate = -1;
	condition = gf(12,2) == 1 && gf(12,7) > 0;
	question = "I found a scrap of paper in Baston's room. Something about the Murkwood.";
	text1 = "She takes the scrap between her thumb and forefinger and carefully examines it. _This is a bit of luck. Not a huge one. The Murkwood is west of here. It is not small._";
	text2 = "_Still, if the brigands have a cache or a camp there ... It is the only hint we have._";
	text3 = "_I do believe that I have a new task for you._ Her tone of voice strongly implies that refusal is not an option. _Before you go, speak with my Shapers. I will make sure that they provide training for you._";
	code = 
		set_flag(12,2,2);
		toggle_quest(48,3);
		award_party_xp(100,12);
	break;		
	
begintalknode 80;
	state = 71;
	nextstate = -1;
	condition = gf(12,2) == 2 || gf(12,2) == 3;
	question = "Where must I go now?";
	text1 = "_You should travel west to the Murkwood. It is too large a region to search alone, but talking to some of the souls that still live in that grim place might yield some information._";
	text2 = "She removes something from a pouch. It is the item she took from Baston's body, still on a thong. It's a key. _Perhaps he forgot to destroy it. Perhaps he actually thought he could escape. Take it._";
	text3 = "_Go to the Murkwood and return when you have learned more._";
	code = 
		set_flag(12,2,3);
		toggle_quest(49,1);
		if (has_spec_item(46))
			rs(2);
			else set_spec_item(46,1);
	break;		
	
begintalknode 81;
	state = 70;
	nextstate = -1;
	condition = gf(18,1) > 0 && gf(12,2) == 3;
	question = "I found a hidden camp in the Murkwood. Someone there said that Baston came from Kratoa-Kel.";
	text1 = "_Kratoa-Kel. The mountain fortress guarding the pass between here and the Storm Plains. Run by Makar. He is a good man. A Guardian, and as stubborn and mistrustful as all of his kind. But he won't be a hindrance._";
	text2 = "_You are doing well._ She waves a hand, and a guard brings you a pouch of coins. _It makes my decision to give you another task an easy one._";
	code = 
		set_flag(12,2,4);
		toggle_quest(49,3);
		award_party_xp(200,15);
		change_coins(300);
	break;		

begintalknode 82;
	state = 71;
	nextstate = 74;
	condition = gf(12,2) == 4 || gf(12,2) == 5;
	question = "What do I need to do now?";
	text1 = "_Go south to Kratoa-Kel. Find Makar, the commander there. Tell him what has happened. Find if Baston did travel through. Learn what you can about the origin of the assassin._";
	text2 = "_I will send word ahead, so that he knows to expect you._";
	code = 
		set_flag(12,2,5);
		toggle_quest(50,1);
	break;		

begintalknode 83;
	state = 74;
	nextstate = -1;
	condition = 1;
	question = "How can I get there?";
	text1 = "_It is almost directly to the south. You can take the road, though it cuts through lands with many rogues._";
	text2 = "_If you wish to avoid that path, you can cut through the Mera Fen to the southwest. If you go that way, you will need to evade a number of traps and minefields._";

begintalknode 84;
	state = 70;
	nextstate = -1;
	condition = gf(12,2) == 5 && gf(36,1) > 0;
	question = "I discovered who sent the assassin. It was Makar himself.";
	text1 = "Astoria doesn't look surprised. She must have received this information already. _And that is why I forced you to aid me._";
	text2 = "_I had long suspected that my failure to find the plotter was because my enemy was someone I trusted. I needed an outsider. And you fell into my lap._";
	text3 = "She removes a ring from her finger and hands it to you. _That is a small favor, a reward for your assistance._ Then she watches you silently. She stares at you, thinking. The silence grows awkward.";
	text4 = "Then, finally, she says, _You have done what I asked, and I will be true to my word. You may pass beyond the Mera-Tev. But I wonder. It might be profitable to tell you more of my beliefs. More of what I wish to do._";
	text5 = "_You would be a useful ally._";
	code = 
		set_flag(12,2,6);
		toggle_quest(50,3);
		award_party_xp(200,20);
		reward_give(339);
	break;		

begintalknode 85;
	state = 70;
	nextstate = -1;
	condition = gf(100,2) == 3;
	question = "I want to discuss something with you.";
	text1 = "_I have nothing to say to you, traitor. I am not vengeful, but, if you are wise, you will leave me now._";
	action = END_TALK;
	
begintalknode 86;
	state = 70;
	nextstate = 76;
	condition = gf(100,2) < 3;
	question = "You are a member of the Council?";
	text1 = "_Indeed. I am one of the seven. One of only two who have actually had to fight this war, who have seen their lands ravaged by the rebels and the Unbound._";
	text2 = "_I am the only one on the Council who truly understands how the war is going. The only one who understands how to end it._";

begintalknode 87;
	state = 70;
	nextstate = 77;
	condition = gf(100,2) < 3;
	question = "I'd like to know more about the Mera-Tev.";
	text1 = "_This province is one of the first claimed by Shapers. We developed our art in the ancient cities on the western coast. Then we expanded east, bringing wealth and security._";
	text2 = "_Now I am attempting to ward off the chaos. The fens have been lost, but most of the rest of the woods are under control. Part of this is because I have been kinder to the creations than others._";

begintalknode 88;
	state = 76;
	nextstate = -1;
	condition = 1;
	question = "How did you become a Council member?";
	text1 = "_Many years of hard work and study. I have displayed the ability to command. I am not the most powerful Shaper or the most accomplished researcher._";
	text2 = "_What I can do is speak with Shapers and convince them to work together toward a common goal. Shapers are an eccentric and proud people. Steering them in such a way takes great diplomacy and skill. That is my talent._";

begintalknode 89;
	state = 76;
	nextstate = -1;
	condition = 1;
	question = "Who is the other Council member who is fighting?";
	text1 = "_General Alwan of the Storm Plains. A fanatic from some island to the northeast. A warrior from the backwater, determined never to surrender, even if it destroys everything._";
	text2 = "_But, whatever I think of him, he at least knows what it is like to fight this war. He is better than the soft ones on the coast._";

begintalknode 91;
	state = 76;
	nextstate = -1;
	condition = 1;
	question = "What don't the other Council members understand?";
	text1 = "_What it is truly like to fight the rebels. They are happy to see the cost to fight this war paid, as long as others pay it._";
	text2 = "She almost seems to be talking to herself. _The ones on the coast are the worst. The soft ones. Decadent. At least it will be easy for us Council members to manipulate them when the time comes._";

begintalknode 92;
	state = 76;
	nextstate = -1;
	condition = gf(12,2) < 6;
	question = "And how will you end the war?";
	text1 = "She looks down at the floor. The stain of Baston's blood is still faintly visible. _I am concerned now with problems closer to home._";

begintalknode 93;
	state = 77;
	nextstate = -1;
	condition = 1;
	question = "Who did you take these lands from?";
	text1 = "She shrugs. _The people who were here before. And we didn't take the lands. The ones who didn't fight us were able to keep living here. They were simply able to do so while taking advantage of our protection._";

begintalknode 94;
	state = 77;
	nextstate = -1;
	condition = 1;
	question = "Tell me about the fens?";
	text1 = "_There is a large swamp in the middle of the Mera-Tev. It was a marvelous resource, a constant source of herbs and reagents for centuries._";
	text2 = "_We have lost control of it. A number of the Unbound are roaming within it. Hunting them has proved to be impossible in such hostile terrain._";
	text3 = "_If you wish to learn more, speak with Quothe. He is in the laboratory._";

begintalknode 95;
	state = 77;
	nextstate = 78;
	condition = 1;
	question = "How do you treat the creations differently?";
	text1 = "_I have allowed intelligent, law-abiding serviles the chance to live with an unusual amount of independence. They can stay in settlements outside of direct Shaper control and look after their own creations._";
	text2 = "_This decision has created some anger. I expected my concessions to the reality of our situation to create some controversy._";

begintalknode 96;
	state = 78;
	nextstate = -1;
	condition = 1;
	question = "Where are these settlements?";
	text1 = "_There are two. There is Kaz, to the south, and Penta, to the west. If this experiment works, then perhaps there will be more such settlements allowed._";
	text2 = "_The serviles of Kaz seem a little more ... unstable. However, they keep to themselves and cause no harm._";
	
begintalknode 97;
	state = 78;
	nextstate = -1;
	condition = 1;
	question = "Why have you made this change?";
	text1 = "_It is possible that this war will not end with our total victory. Who could imagine it?_";
	text2 = "_In this case, we need to demonstrate that we can live peacefully with creations without absolute control._";

begintalknode 98;
	state = 78;
	nextstate = -1;
	condition = gf(100,9) == 0 && gf(100,10) == 0;
	question = "Have you heard of something called the Shadow Road?";
	text1 = "She immediately looks suspicious. _What an odd question! Yes, rumors of such a thing have floated up to me. There are lots of rumors. I see no reason to waste time dwelling on them._";
	text2 = "_You should focus on more immediate problems. Much safer._";
	
begintalknode 99;
	state = 70;
	nextstate = -1;
	condition = gf(12,2) >= 6 && gf(12,2) < 10 && gf(100,0) > 102;
	question = "I want to know more about what you are trying to do.";
	text1 = "Astoria looks like she is about to speak. Then she pauses to reconsider. _You have shown yourself to be very loyal to the Shaper cause. You are hesitant to question their ways._";
	text2 = "_Perhaps it would be unwise for me to confide in you at this point._";
	
begintalknode 100;
	state = 70;
	nextstate = 80;
	condition = gf(12,2) >= 6 && gf(12,2) < 10 && gf(100,0) <= 102;
	question = "I want to know more about what you are trying to do.";
	text1 = "Astoria nods. _Although I am a member of the Council, I have felt bereft of allies of late. Though you are ... odd, I would be willing to confide in you. A small amount._";
	text2 = "_The rebellion has raged for years now. It keeps crawling west, killing more people and destroying more land. Once, the Shapers were confident that it could be put down. Overconfident. Now some feel it may not be possible._";
	
begintalknode 101;
	state = 80;
	nextstate = -1;
	condition = gf(12,2) <= 7;
	question = "What is the alternative to fighting?";
	text1 = "_The settlement of Penta is west of here. It is a servile village, run by one of those creatures. Learned Dominic. He has been asking for my help. I am sending you. Go there. Aid him. Inspect their settlement._";
	text2 = "_Then return and tell me what you have seen._";
	code = 
		set_flag(12,2,7);
		toggle_quest(7,1);
	break;
	
begintalknode 102;
	state = 70;
	nextstate = -1;
	condition = gf(12,2) == 7 && gf(22,1) > 0;
	question = "I went to Penta as you asked. It was full of rogue serviles. I took care of them.";
	text1 = "Astoria stares at you. Her face betrays not a hint of emotion. _You have obeyed the laws of the Shapers. I am sure that you are satisfied with yourself._";
	text2 = "_I don't think that I will deal with you in the future, though. You will have to find a patron somewhere else. Now excuse me. I have some damage to repair._ She turns away.";
	action = END_TALK;
	code = 
		set_flag(12,2,20);
		toggle_quest(7,4);
	break;
	
begintalknode 103;
	state = 70;
	nextstate = -1;
	condition = gf(12,2) == 7 && gf(22,1) == 0 && gf(22,2) > 0;
	question = "I went to Penta as you asked. I helped Learned Dominic.";
	text1 = "You tell Astoria what you did in Penta. _Then you have seen a group of serviles living in violation of Shaper laws. Rogues, the Council would say. But living in peace._";
	text2 = "_You have saved me some time and effort. Serving a Shaper is not without rewards._ She claps her hands. A guard brings you a large pouch of coins and a wand.";
	text3 = "_You have learned some. I would have you learn more. If you are intrigued, I have another task for you._";
	code =
		set_flag(12,2,8);
		toggle_quest(7,3);
		award_party_xp(200,18);
		change_coins(400);
		reward_give(99);
	break;
	
begintalknode 104;
	state = 80;
	nextstate = 81;
	condition = gf(12,2) == 8 || gf(12,2) == 9;
	question = "Where else would you have me go?";
	text1 = "_This mission involves a much longer journey. You will go to a far more perilous area. The war-torn lands at the east end of the Storm Plains. The barrier zone between our forces and theirs._";
	text2 = "_There is a creature there. A drakon. Yes, a drakon, one of the rogue leaders of the rebellion. It is called Tholosss._";
	text3 = "_Find it and speak with it. I believe that it has a message for me. Get it and bring it back to me._";
	code = 
		set_flag(12,2,9);
		toggle_quest(8,1);
	break;
	
begintalknode 105;
	state = 81;
	nextstate = -1;
	condition = 1;
	question = "Meet a drakon? Are you sure?";
	text1 = "_I am. Tholosss is an outcast. He has been thrown out of the circles of leadership by Ghaldring, leader of the drakons. I can only hope that he is still alive._";

begintalknode 106;
	state = 81;
	nextstate = -1;
	condition = 1;
	question = "Where is Tholosss?";
	text1 = "_In hiding in the barrier zone, between the line of Shaper fortresses and Gazaki-Uss. I don't know where. He has made himself hard to find. If he hadn't, his fellow rogues would have killed him by now._";
	
begintalknode 107;
	state = 70;
	nextstate = -1;
	condition = gf(12,2) == 9 && gf(101,7) > 0;
	question = "I met Tholosss, but I had to kill him.";
	text1 = "Astoria stares at you. Her face betrays not a hint of emotion. _You have obeyed the laws of the Shapers. You have set a great work back many months. If not years. If it is still possible at all._";
	text2 = "_I don't think that I will deal with you in the future, though. You will have to find a patron somewhere else. Now excuse me. I have much damage to repair._ She turns away.";
	action = END_TALK;
	code = 
		set_flag(12,2,20);
		toggle_quest(8,4);
	break;
	
begintalknode 108;
	state = 70;
	nextstate = -1;
	condition = gf(12,2) == 9 && gf(101,7) == 0 && gf(100,14) > 0;
	question = "I met Tholosss. He had a message. He said that it is possible.";
	text1 = "Astoria surprises you by grinning broadly. _I did not think it could happen. The odds seemed so slim. My tools so inadequate. And yet I have completed the first part of the task. And you helped._";
	text2 = "You are rewarded. Astoria has the guards bring you another, larger pouch of gold and a pair of blessing stones.";
	text3 = "_Since you are the one who made this possible, I will tell you what I have been doing. I will give you the chance to knowingly take part._";
	text4 = "_So many have tried what I am attempting. All have failed. Many have died. Yet, I will succeed. I am going to end this accursed war._";
	code =
		set_flag(12,2,10);
		toggle_quest(8,3);
		award_party_xp(200,18);
		change_coins(500);
		reward_give(392);
		reward_give(393);
	break;
	
begintalknode 109;
	state = 80;
	nextstate = -1;
	condition = gf(12,2) == 8 || gf(12,2) == 9;
	question = "Why do you tolerate groups of independent serviles in your land?";
	text1 = "_You are correct that the Shapers would never allow a place like Penta to exist. They are very strict. And that hasn't been working very well for them so far, has it?_";
	text2 = "_I have my own beliefs about what is best for the survival of the Shapers and their people. Before I can say more, I need you to find and speak with a certain creation for me._";
	
begintalknode 110;
	state = 70;
	nextstate = 86;
	condition = gf(12,2) == 10 && (gf(100,3) == 2 || gf(100,4) == 2 || gf(100,5) == 2 || gf(100,6) == 2);
	question = "I would like to help you end the war.";
	text1 = "_Perhaps you would. I'm sure you want to end the war in your own way. Not my way._";
	text2 = "_I thank you for the help you have given so far. You have been very useful. However, I believe that your loyalty is with another. Renounce those you have sworn to help, and I may be able to trust you fully._";
	
begintalknode 111;
	state = 70;
	nextstate = 82;
	condition = gf(12,2) == 10 && gf(100,3) != 2 && gf(100,4) != 2 && gf(100,5) != 2 && gf(100,6) != 2 && gf(100,2) < 2;
	question = "I would like to help you end the war.";
	text1 = "_We all wish to end this war. Before I can trust you fully, I will need you to swear to secrecy. I will tell you what you need to know. No more._";
	text2 = "_The war is lost. The creations were too determined. They were too willing to suffer and die. We were too complacent, too overconfident._";
	text3 = "_The only question now is how much more the people of Terrestia will suffer before we bow to the inevitable._";
	
begintalknode 112;
	state = 82;
	nextstate = -1;
	condition = 1;
	question = "What do the other Shapers think of this?";
	text1 = "_Not much. The loyalists are not fond of the idea either. Which is why they wanted to assassinate me._";
	
begintalknode 113;
	state = 82;
	nextstate = -1;
	condition = 1;
	question = "So what will you do?";
	text1 = "_I will sue for peace. I will give the creations what they want: Lands to call their own. Freedom, to abuse as they choose. Only one thing stands between us and victory. The Shaper Council must be convinced to accept my plan._";
	
begintalknode 114;
	state = 82;
	nextstate = 83;
	condition = 1;
	question = "Where do I come into this?";
	text1 = "_The Shaper Council must be made to see reason. They must agree to sue for peace. We will lose the war. We will have less land. But we will be able to stop fighting!_";
	text2 = "_They will only agree to this if they are coerced. I cannot act against members directly. I need an agent who can manipulate them, under my direction, until I have enough votes for my plan to be adopted._";
	text3 = "_It will be very dangerous. You may well be killed. If you want to save Terrestia, however, I think it is the only way._";
	text4 = "_So. You have proven yourself. Will you swear loyalty to me? Will you fight to sue for peace and to end this war?_";
	text5 = "(If you agree, you will join Astoria's faction and be on one of the paths to winning the game. You can leave this path later, but not without penalty. Make sure that this is what you want.)";
	
	
begintalknode 115;
	state = 83;
	nextstate = -1;
	condition = 1;
	question = "I really don't know.";
	text1 = "Astoria looks exasperated. _Have you not seen enough of this world to see? Something must be done. Oh, just go away. Return when you are ready to pick a side._";
	action = END_TALK;
	
begintalknode 116;
	state = 83;
	nextstate = -1;
	condition = 1;
	question = "This peace is not enough. The Shapers must be crushed.";
	text1 = "_So you are bloodthirsty, but for the other side. Just another sign of the madness, I suppose. Out of thanks for what you have done, I will not slay you._";
	text2 = "_Go. And I hope, one day, you see the foolishness of your path._";
	action = END_TALK;
	
begintalknode 117;
	state = 83;
	nextstate = -1;
	condition = 1;
	question = "I can never accept this surrender.";
	text1 = "_So you are as hidebound and bloodthirsty as the others. Just another sign of the madness, I suppose. I should commend you for your loyalty to our sect. And yet, I cannot._";
	text2 = "_Go. And I hope, one day, you see the foolishness of your path._";
	action = END_TALK;
	
begintalknode 118;
	state = 83;
	nextstate = 84;
	condition = 1;
	question = "I will join you. I swear it.";
	text1 = "The Councilor rises and puts her hand on your shoulder. _Then swear to trust and serve me. Follow my commands. Work to bend the Shaper Council to our will, so that we can finally obtain an honorable peace._";
	
begintalknode 119;
	state = 84;
	nextstate = -1;
	condition = 1;
	question = "I'm still not sure.";
	text1 = "Astoria looks exasperated. _Have you not seen enough of this world to understand? Something must be done. Oh, just go away. Return when you are ready to pick a side._";
	action = END_TALK;
	
begintalknode 120;
	state = 84;
	nextstate = 70;
	condition = 1;
	question = "I so swear.";
	text1 = "_And I swear to aid you in your struggle and reward you for your successes. I am pleased to have a new ally, a cunning and dangerous infiltrator._";
	text2 = "_I will unlock the door to my private laboratory. Take anything you find that seems useful. Also, if you can prove yourself, I will instruct Quothe to teach you more advanced magic and Shaping._";
	text3 = "_Now that there is hope, I am eager to begin. Let us discuss your first mission. There is an obstacle we need to remove. His name is Rawal._";
	code =
		sf(100,2,2);
		sf(12,25,1);
		award_party_xp(250,20);
	break;
	
begintalknode 121;
	state = 70;
	nextstate = -1;
	condition = gf(100,2) == 2 && gf(100,8) == 0;
	question = "Is there any way to remove the Control Tool from my chest?";
	text1 = "Astoria has you show the creature to her. _The rivals of Rawal have not been inactive. When we learned about these creatures, we immediately began to develop countermeasures against them._";
	text2 = "_I don't have the Shaping skill to remove it. That's all right. I have people who do. Go and speak with Quothe._";
	
begintalknode 122;
	state = 70;
	nextstate = 88;
	condition = gf(100,2) == 2 && (gf(12,2) == 10 || gf(12,2) == 11);
	question = "I am ready to continue our work.";
	text1 = "_Then the first thing we must do is deal with your former master, Shaper Rawal. He will be less difficult to bring around than the others. He only cares about how much influence and power he will have when the war is over._";
	text2 = "_When he sees that I am winning over the Council, he will join me. First, however, I must remove the power he has over me._";
	
begintalknode 123;
	state = 86;
	nextstate = -1;
	condition = 1;
	question = "I will not do that.";
	text1 = "_Then leave me. You are but one person. You will not keep me from completing my great work._";
	action = END_TALK;
	
begintalknode 124;
	state = 86;
	nextstate = 87;
	condition = 1;
	question = "I want to renounce my old alliance. I want to serve you.";
	text1 = "She looks into your eyes, trying to gauge your sincerity. _Then swear again, on your life. But know this. Betrayal has consequences._";
	text2 = "(If you agree, the faction you agreed to help earlier will turn their backs on you. There is no going back to them. Be sure that this is what you want.)";
	text3 = "_Your words and deeds have shown you to be loyal to the Shapers. I could not trust you._";
	action = DEP_ON_SDF 100 0 102;
	
begintalknode 125;
	state = 87;
	nextstate = -1;
	condition = gf(100,0) < 103;
	question = "I will not do that.";
	text1 = "_I thought so. Leave me. You are but one person. You will not keep me from completing my great work._";
	action = END_TALK;
	
begintalknode 126;
	state = 87;
	nextstate = 70;
	condition = gf(100,0) < 103;
	question = "I swear on my life that I want to serve you. I renounce my old alliance.";
	text1 = "You expect something more dramatic. A shock or a bolt of lightning or something. Nothing so spectacular happens. However, you suspect that word of your action will soon filter back to your former master.";
	text2 = "Astoria nods. _You have chosen wisely. I can keep you safe, though I will also make sure there is no going back to where you were before. Now then. Let us discuss our new future._";
	code =
		if (gf(100,3) == 2)
			sf(100,3,3);
		if (gf(100,4) == 2)
			sf(100,4,3);
		if (gf(100,5) == 2)
			sf(100,5,3);
		if (gf(100,6) == 2)
			sf(100,6,3);
	break;
	
begintalknode 127;
	state = 88;
	nextstate = 89;
	condition = 1;
	question = "How will I do that?";
	text1 = "_I made a mistake. Or, one of my workers did. I am not sure. I was storing some records and notes in the Foundry Repository. Some of my correspondence with the rebels ended up there._";
	text2 = "_Of course, Rawal searches all of the vaults under his control. He has those letters, and he holds them over my head. He could humiliate me with them in front of the Council, or worse. I need them back._";
	text3 = "She removes a key from a silver chain around her neck. _This key will let you into my vault._";
	text4 = "_Sneak into the repository. Find my vault, recover the letters, and bring them to me._";
	code = 
		set_flag(12,2,11);
		toggle_quest(9,1);
		if (has_spec_item(45))
			rs(3);
			else set_spec_item(45,1);
	break;	
	
begintalknode 128;
	state = 89;
	nextstate = -1;
	condition = 1;
	question = "You can't get the papers yourself?";
	text1 = "_One of Rawal's sworn duties as keeper of the repository is to allow the other Council members access to it. In this, as in many other things, he is not living up to his duties._";
	text2 = "_Unless I attack him directly, I can't get in. I am not willing to start civil war. Yet._";
	
begintalknode 129;
	state = 89;
	nextstate = -1;
	condition = 1;
	question = "Why are these letters so sensitive? Won't the Council already know that you were speaking with the rebels?";
	text1 = "_You are correct. However, in the letters, I made specific offers of concession._";
	text2 = "_Sacrifices will be made for the peace. However, as often happens, people are more willing to pay a cost when it is vague and undefined than specific and immediate._";
	text3 = "_I won't be able to convince the Shaper Council to sue for peace unless I can confront them with the cost only after they agree. Thus, I can't allow Rawal to undercut me in debate._";
	
begintalknode 130;
	state = 89;
	nextstate = -1;
	condition = 1;
	question = "Can't I just kill Rawal?";
	text1 = "_You will do no such thing. If you harm a member of the Council, I am bound by honor to destroy you. I will not hesitate._";
	
begintalknode 131;
	state = 70;
	nextstate = -1;
	condition = gf(12,2) == 11 && has_spec_item(37);
	question = "I retrieved your letters. (Give them to her.)";
	text1 = "She takes the letters and inspects them. Then she drops them into a brazier. _That is what I should have done before. I will not make the mistake twice._";
	text2 = "She has rewards brought to you. One of her old cloaks, a blessing crystal, and a large pouch of gold coins.";
	text3 = "_Now that Rawal is no longer an impediment, we must deal with the more difficult opponents. Next is General Alwan. This will be painful, but it must be done. The fanatic must be broken._";
	code = 
		set_spec_item(37,-1);
		set_flag(12,2,12);
		toggle_quest(9,3);
		award_party_xp(250,20);
		reward_give(21);
		reward_give(390);
		change_coins(500);
	break;	
	
begintalknode 132;
	state = 70;
	nextstate = 90;
	condition = gf(100,2) == 2 && (gf(12,2) == 12 || gf(12,2) == 13);
	question = "I am ready to continue our work.";
	text1 = "_Then we must discuss General Alwan. He has done well. When the first of the Unbound came, we had thought that we would lose more ground than we did. He held them back._";
	text2 = "_Then, after I approached the rebels, they stopped attacking me and threw their forces against Alwan. Still, he held them off._";
	text3 = "_Now he has dreams of driving east and pushing the rebels into the sea. Alas, the Council has bought into his fantasies. They think that he can do it. I need him to taste a bit of defeat, to tarnish him in their eyes._";
	
begintalknode 133;
	state = 90;
	nextstate = 91;
	condition = 1;
	question = "What does that mean?";
	text1 = "_I have access to all the records of the Shapers. This includes some very sensitive papers. I have learned about a tunnel. It is in the mountains east of Fort Rockfall._";
	text2 = "_It is well hidden, trapped, and defended. You need to slip in, discreetly of course, and clear a path through. Once this is done, quickly return to me so that I can inform the rebels._";
	text3 = "_The result will be a considerable setback for Alwan. I will press my advantage._";
	code = 
		set_flag(12,2,13);
		sf(56,4,1);
		toggle_quest(10,1);
	break;	
	
begintalknode 134;
	state = 91;
	nextstate = -1;
	condition = 1;
	question = "How can I find this tunnel?";
	text1 = "_Enter the wastes east of Fort Rockfall and stay close to the mountains for the south. Look for a bare wall, marked with carved stone pillars._";
	text2 = "_This is where you can find the door. You have the senses of a Shaper. The way will be clear to you._";
	
begintalknode 135;
	state = 91;
	nextstate = 70;
	condition = 1;
	question = "You are seriously planning this?";
	text1 = "_It is difficult, I know. It will be costly. It will cause losses. However, the tunnel is narrow, and Alwan is fast. The rebels will only be able to get so many forces through. I believe that he will be able to limit the losses._";
	text2 = "_It will simply cause a setback. That is what I need. I will deal with the consequences of my treachery after I have won._";
	text3 = "_Is there anything else we need to discuss?_";
	
begintalknode 136;
	state = 91;
	nextstate = 70;
	condition = 1;
	question = "It will be done.";
	text1 = "_I knew that I could rely on you. Don't think about this too much. We will deal with the consequences of our treachery after we have won._";
	text3 = "_Is there anything else we need to discuss?_";
	
begintalknode 137;
	state = 70;
	nextstate = -1;
	condition = gf(12,2) == 13 && gf(100,15) > 0;
	question = "I found the hidden tunnel. The way is clear.";
	text1 = "Astoria closes her eyes for a long moment. Only now is the full import of what she is about to do hitting her. _So now there is no turning back. Now I am about to ... to ..._";
	text2 = "_No. My plan is sound. It must be done. I will not think about those who will be lost. I will think about the many, many more that will be saved._";
	text3 = "_You have done well. You will be rewarded, of course._ A guard brings you a ring, another blessing crystal, and a large sack of coins.";
	text4 = "_I still need to get another vote. One more person on the Council needs to be convinced. It is time to stop Sage Taygen's madness. One final task awaits you._";
	code = 
		sf(100,15,2);
		set_flag(12,2,14);
		toggle_quest(10,3);
		award_party_xp(300,25);
		reward_give(341);
		reward_give(391);
		change_coins(700);
	break;	
	
begintalknode 138;
	state = 70;
	nextstate = 92;
	condition = gf(100,2) == 2 && (gf(12,2) == 14 || gf(12,2) == 15);
	question = "What is my final task?";
	text1 = "_You must travel south to the Dera Reaches. It is ruled by Sage Taygen, who we now know is the maddest of the members of the Council. He wants to create a disease which will slay all creations._";
	text2 = "_He wants the Shapers to start over. And, though he is mad, he is also brilliant. I believe that he can succeed._";
	text3 = "_His work is taking place in Kayar's Spire, in the most remote, barren extent of that desert. Find a way to get there and sabotage his work. Once he has lost hope, I think that I can bring him around to our cause._";
	code = 
		set_flag(12,2,15);
		toggle_quest(11,1);
	break;
	
begintalknode 139;
	state = 92;
	nextstate = -1;
	condition = 1;
	question = "Can't I just kill Taygen?";
	text1 = "_You will do no such thing. If you harm a member of the Council, I am bound by honor to destroy you. I will not hesitate._";
	
begintalknode 140;
	state = 92;
	nextstate = -1;
	condition = 1;
	question = "How can I get to Kayar's Spire?";
	text1 = "_It will be difficult. You will need to avoid Sage Taygen. He is aware of how the other Council members will react to news of his work. I think he hopes to complete and release the disease before he can be stopped._";
	text2 = "_Completing the Agent will be delicate work. Delicate enough that it should be easy to sabotage it. It must be done though, and quickly._";
	
begintalknode 141;
	state = 92;
	nextstate = -1;
	condition = 1;
	question = "Why do you oppose this? Don't the Shapers claim total dominion over their creation?";
	text1 = "_You do not understand us at all. Our creations are our children. We control them. We discipline them. But we love them._";
	text2 = "_We cannot destroy the loyal creations. That would be a rejection of all we believe._";
	
begintalknode 142;
	state = 70;
	nextstate = -1;
	condition = gf(12,2) == 15 && (gf(100,17) > 0 || gf(100,21) > 0);
	question = "I have succeeded. The Purity Agent will not be created.";
	text1 = "_Then all is ready. Alwan's troops have lost ground and are struggling to regain it. Rawal has no grasp on me. Taygen has lost his hope. The other Council members are adrift, hoping for guidance._";
	text3 = "_You have done extremely well. You will receive a great reward, of course._ A guard brings you a beautiful talisman, another blessing crystal, and a large sack of gold coins.";
	text4 = "_Soon, the full Council will meet. At last, I will be able to present my full case. And I will give you the honor of being there._";
	code = 
		set_flag(12,2,16);
		toggle_quest(11,3);
		award_party_xp(400,30);
		reward_give(374);
		reward_give(394);
		change_coins(1000);
	break;	
	
begintalknode 143;
	state = 70;
	nextstate = -1;
	condition = gf(12,2) == 16;
	question = "Where should I go now?";
	text1 = "_I am about to leave this place. I am going to the Shaper Citadel. Our annual meeting is close. All members of the Council will depart for there very soon. Once the Council meets, I will present my case._";
	text2 = "_You must travel to the Council hall, in the Shaper Citadel. The path up to it is at the southwest corner of the Mera-Tev. I will send word that you are to be let in._";
	text3 = "_I want you to be present when I make my argument. This is important. Go there soon. Do not disappoint me._";
	code = 
		set_flag(12,2,17);
		toggle_quest(24,1);
		sf(100,18,1);
		sf(100,16,1);
	break;
	
	
begintalknode 144;
	state = 70;
	nextstate = -1;
	condition = gf(13,29) == 0 && (gf(100,9) > 0 || gf(100,10) > 0) && gf(100,2) < 2 && gf(12,2) < 10;
	question = "I have found evidence that the Shadow Road actually exists. Do you know of this?";
	text1 = "_What? A way for treacherous and rogue creations to be ferried peacefully out of my lands? It actually exists? Shocking!_";
	text2 = "_I assure you that this will receive my immediate attention. I will give this situation all of the effort it deserves._";
	
begintalknode 145;
	state = 70;
	nextstate = 93;
	condition = gf(100,6) == 2 && gf(12,9) == 0;
	question = "I want to talk to you about the Shaping arts.";
	text1 = "Astoria suddenly looks very tired. _Oh, really? I am fascinated. I would love to hear what an outsider has to say about this subject._";
	text2 = "_Please make this quick. I have very little time. I have a new disaster to deal with._";
	code =
		if (gf(100,13) == 0)
			rs(2);
	break;
	
begintalknode 146;
	state = 93;
	nextstate = -1;
	condition = 1;
	question = "Do you think that Shaping is still a force for good?";
	text1 = "_What? You are taking a great risk bringing your Trakovite babble in here. I will do you a favor. I will let you leave now. That is the best you will get. Do not try to debate about philosophy with me._";
	text2 = "She waves a hand. Her guards escort her away.";
	action = END_TALK;
	
begintalknode 147;
	state = 93;
	nextstate = 94;
	condition = gf(100,13) > 0;
	question = "Tell me about this disaster.";
	text1 = "_A new creation. As vicious as any we have seen. A small swarm of ravenous bugs. It came out of the swamps. The soldiers who found them suffered serious losses. Fortunately, the pests seemed sickly, and thus weakened._";
	text2 = "_We have not found more yet, but if there are a few, more are being made. Ones that are not so frail. If they begin to spread, I don't think that we will be able to eliminate them._";
	text3 = "_A new creation. As vicious as any we have seen. Swarms of ravenous bugs. They came out of the swamps. I've sent my soldiers to get it under control. We've had serious losses. I don't think that we will be able to eliminate them._";
	text4 = "_I don't understand it. I was dealing with the rebels. The attacks were slowing down. I was regaining control. And then this ... Someone made a new creature and just let it loose. I wish I knew where it came from._";
	action = DEP_ON_SDF 100 13 1;
	
begintalknode 148;
	state = 94;
	nextstate = 95;
	condition = 1;
	question = "Serviles in the Shadow Road made it. I saw the labs.";
	text1 = "She jumps to her feet, furious. _What! After all I did for them? All I allowed? They betray me in this way?_ You decide that it would be unwise to mention your role in their release.";
	text2 = "_I let them alone. And, the moment we look away, they use our arts like this. The rebels doing this, I could understand. But these serviles were working with us. And they let loose this disaster ..._";
	text3 = "She seems genuinely stunned.";
	
begintalknode 149;
	state = 95;
	nextstate = -1;
	condition = 1;
	question = "Do you still think that Shaping is a force for good? When anyone can make a disaster like this?";
	text1 = "She sits down and looks at you suspiciously. _You ... You sound like a Trakovite. You gloat over this disaster and try to ... But no. You didn't create those horrors. They did. But now that our secrets are known, couldn't anyone ..._";
	text2 = "She is ignoring you, lost in thought. You back away. There is nothing else you can do here. The seed has been planted. Perhaps she will see things in a new way. Perhaps not. It's out of your hands now.";
	action = END_TALK;
	code =
		sf(12,9,1);
	break;
	
begintalknode 150;
	state = 70;
	nextstate = -1;
	condition = gf(100,6) == 2 && gf(12,9) > 0;
	question = "I want to talk to you about the Shaping arts.";
	text1 = "Astoria suddenly looks very tired. _Speaking with you does not make my path clearer. I have much to think about. Just leave me be._ She turns away.";
	action = END_TALK;

begintalknode 151;
	state = 70;
	nextstate = -1;
	condition = gf(100,5) == 2;
	question = "I work for the drakons now. Die, Shaper! (Attack.)";
	text1 = "Councilor Astoria seems genuinely surprised. _What? You are working for Ghaldring? We had truly expected better from you. Now we must destroy you and start again. A waste, but necessary._";
	action = END_TALK;
	code =
		sf(11,1,1);
		make_zone_hostile();
	break;
	
//begintalknode 150;
//	state = 70;
//	nextstate = -1;
//	condition = 1;
//	question = "";
//	text1 = ".";
//	text2 = "";

	
// Sage Quothe

begintalknode 160;
	state = -1;
	nextstate = 170;
	condition = 1;
	question = "Name";
	text1 = "You meet the master of this large laboratory. He is an elderly Shaper. You only catch glimpses of his face in the shadows of his hood, but his skin is deeply lined and looks almost gray.";
	text2 = "He walks up to you and examines you, as if you were an intriguing specimen. _Very interesting. You look so normal. But the skin ... it is waxen. Your eyes have a hint of glow. You are clearly much older than you look._";
	text3 = "_But I am impolite. I am Sage Quothe. Astoria directed me to treat you as if you were ... normal. I am the research master here._";
	text5 = "Sage Quothe stands calmly and watches you. He clearly finds you to be a fascinating specimen. Hopefully, he can refrain from actually trying to perform experiments on you.";
	action = INTRO;

begintalknode 161;
	state = 170;
	nextstate = 171;
	condition = 1;
	question = "What do you study here?";
	text1 = "Quothe's voice is soft and raspy. You have to struggle to hear him. _Councilor Astoria uses my skill well. She has set me to analyze the creations sent against us by the rebels. They have created many new, unusual beasts._";
	text2 = "_I examine them and look at their strengths and weaknesses. In particular, I focus on the Unbound. I also examine the canisters the rebels use to Shape themselves. Very interesting artifacts._";
	text3 = "_And, lately, I have been examining the shredbugs._";
	code =
		if (gf(100,13) < 2)
			rs(3);
		break;
		
begintalknode 162;
	state = 170;
	nextstate = 175;
	condition = 1;
	question = "What do you know about me?";
	text1 = "_I know only what I see, but that tells me a lot. You have been heavily touched by the arts of the Shapers. Made and remade again. I am amazed that you are alive, and that you maintain a touch of sanity._";
	text2 = "_It is good that you have somehow found an equilibrium in your mind. Otherwise, no true Shaper would hesitate to destroy you._";

begintalknode 163;
	state = 170;
	nextstate = -1;
	condition = gf(12,2) < 2;
	question = "Can I get training?";
	text1 = "_You are an outsider. I do not teach outsiders._";
	text2 = "_I have never taught a servile. I hope that I never will._";
	text3 = "_I may change my mind if Astoria sends word, but, until then, I will not share my power with you._";
	code =
		if (creature_type(pc_num()) == 46) 
			rs(1);
			else rs(2);
	break;
	
begintalknode 164;
	state = 170;
	nextstate = 177;
	condition = gf(12,2) >= 2 && gf(100,2) < 3;
	question = "Can I get training?";
	text1 = "_You are an outsider. Normally, I do not teach outsiders._";
	text2 = "_I have never taught a servile. Truly, we live in strange times._";
	text3 = "_Astoria has asked me to teach you. I will do what I can, but only out of respect for her._";
	text4 = "_She says that, if you do more for her, she will have me teach you greater secrets. We will see._";
	text5 = "_She says that, as you have done much for her, she will have me teach you greater secrets. It worries me, but I will obey._";
	code =
		if (creature_type(pc_num()) == 46) 
			rs(1);
			else rs(2);
		if (gf(12,2) < 12)
			rs(5);
			else rs(4);
	break;
	
begintalknode 165;
	state = 170;
	nextstate = 178;
	condition = gf(100,2) == 2 && gf(100,8) == 0;
	question = "I have a control tool in my chest.";
	text1 = "Sage Quothe has you show it to him. He nods. _Shaper Rawal has not improved the design. My knowledge is not out of date. I can remove it._";
	text2 = "_However, it will be difficult. And extremely painful. Are you sure that you want to take the risk? Remember, as long as you stay far from Rawal, he will not be able to control you._";
	
begintalknode 166;
	state = 171;
	nextstate = -1;
	condition = 1;
	question = "What do you think of the canisters?";
	text1 = "_Fascinating work. Very innovative. They should all be destroyed._";
	text2 = "_They are a violation of all the Shapers believe. They give power without the training and wisdom needed to use that power. And, when too many canisters are used, they can warp the user. Make eccentric. Temperamental. Dangerous._";
	text3 = "He acts as if he is describing you directly.";
	
begintalknode 167;
	state = 171;
	nextstate = 172;
	condition = gf(100,13) == 2;
	question = "Tell me about the shredbugs.";
	text1 = "_They erupted from the fens. They are very dangerous. We are losing many soldiers trying to control them. I do not think that we will succeed._";
	text2 = "_They are marvelous evidence of the need for Shapers to maintain absolute control over the act of Shaping. And yet, Councilor Astoria has been greatly shaken by this._";
	
begintalknode 168;
	state = 171;
	nextstate = 173;
	condition = 1;
	question = "I'd like to know more about the Unbound.";
	text1 = "_They are the most powerful and destructive of the creations made by the rebels. Made from drakon stock, but infused with as much power as the physical form can hold. This results in mindlessness._";
	text2 = "_The rebels don't care about that, though. They send the Unbound into Shaper lands to rampage. We would never make such a thing._";
	text3 = "_I am trying to learn as much about them as I can. We have an infestation of them that we need to control._";
	code =
		if (gf(12,10) > 5)
			rs(3);
	break;
	
begintalknode 169;
	state = 172;
	nextstate = -1;
	condition = 1;
	question = "In what way?";
	text1 = "_She seems to doubt the ability of the Shapers to ever maintain the necessary control again. I shall endeavor to shore up her will._";
	
begintalknode 170;
	state = 173;
	nextstate = -1;
	condition = 1;
	question = "Why wouldn't the Shapers ever make them?";
	text1 = "_Because we Shapers, whatever our flaws, recognize the value of control. We never create uncontrolled creations. We evaluate every design of creature carefully before we allow ourselves to replicate it._";
	text2 = "_Making the Unbound is not only cruel to the outsiders. It is cruel to the Unbound. To make a creature eternally trapped in such madness? It is heartless._";
	text3 = "Sage Quothe's voice wavers. He seems genuinely sad. _The creations are our children. What monster would ever make such a child?_";
	
begintalknode 171;
	state = 173;
	nextstate = -1;
	condition = gf(12,10) < 6;
	question = "Where are the Unbound?";
	text1 = "_They live in the Mera Fens. They have taken up residence there. They are mad and destructive, but they are not completely suicidal. They know that we can't hunt them well in the swamp. They stay there and leave on raids._";
	text2 = "_Though they are large, they somehow manage to maneuver well through the muck. Perhaps they float. They strike and retreat where we can't follow._";
	
begintalknode 172;
	state = 173;
	nextstate = -1;
	condition = gf(12,10) < 2;
	question = "Perhaps I can help you hunt down the Unbound.";
	text1 = "_The Councilor said that you might have certain mercenary qualities. Doing such heroic work. For pay, of course._";
	text2 = "_I think that you can help me. In the far corner of the fen, there was a ruin called Gorash-Kel. A keep of the woods people, where they stood against the Shapers centuries ago. They failed, of course._";
	text3 = "_I think that the Unbound would be drawn to it as a shelter. Go there and slip inside it. See if they are there. Then report back. Do not try to kill them. They are a mighty foe, and I do not think that you would succeed._";
	code = 
		set_flag(12,10,1);
		toggle_quest(51,1);
	break;
	
begintalknode 173;
	state = 170;
	nextstate = -1;
	condition = gf(12,10) == 1 && gf(25,3) > 0;
	question = "I have been inside Gorash-Kel. (Describe it.)";
	text1 = "_It is as I imagined. The Unbound are hiding there. This may make it easier to destroy them, if we can keep them from fleeing their lair for a new hiding place._";
	text2 = "_Out of gratitude, I offer you this._ He gives you two pouches of spores. _Those may help in the work ahead._";
	text3 = "_Also, should I ever be able to train you, I will charge a lower fee. I can do more for you if you can assist me further._";
	code = 
		set_flag(12,10,2);
		toggle_quest(51,3);
		award_party_xp(200,15);
		reward_give(237);
		reward_give(237);
	break;
	
begintalknode 174;
	state = 170;
	nextstate = -1;
	condition = gf(12,10) == 2 || gf(12,10) == 3;
	question = "What is the next step in the hunt for the Unbound?";
	text1 = "_The creatures are not uniform. There are different varieties. I need to know what sort hunts the swamp. I also need to know if they are maintaining their strength._";
	text2 = "_The Unbound stalk the swamp. Ambush one of them and kill it. Note its abilities. Report back to me._";
	text3 = "_I do hope that I am not sending you to your death. They are, after all, very dangerous creatures. But I really could use the information._";
	code = 
		set_flag(12,10,3);
		toggle_quest(52,1);
	break;
	
begintalknode 175;
	state = 170;
	nextstate = -1;
	condition = gf(12,10) == 3 && gf(25,2) > 0;
	question = "I slew an Unbound in the swamp. (Describe the battle.)";
	text1 = "Sage Quothe listens to your account with great interest. He takes some notes. _It is as I suspected. No flesh can hold so much power for so long. The beasts are fading._";
	text2 = "_We know that they are in a period of weakness. We also know where they have clustered. Perhaps we have the power to rid ourselves of this blight._";
	text3 = "He gives you a wand and a pair of pouches of spores. _If you are to help us, you will certainly need those._";
	code = 
		set_flag(12,10,4);
		toggle_quest(52,3);
		award_party_xp(200,20);
		reward_give(100);
		reward_give(235);
		reward_give(235);
	break;
	
begintalknode 176;
	state = 170;
	nextstate = -1;
	condition = gf(12,10) == 4 || gf(12,10) == 5;
	question = "What do you want me to do?";
	text1 = "_The Unbound in the fen have tormented us for a year now. You can free us. Do so. Go to Gorash-Kel and clean the monsters out._";
	text2 = "_Be careful. In numbers, on their home ground, they will be very dangerous. If you succeed, I will give a reward to match the accomplishment._";	
	code = 
		set_flag(12,10,5);
		toggle_quest(53,1);
	break;
	
begintalknode 177;
	state = 170;
	nextstate = -1;
	condition = gf(12,10) == 5 && gf(25,1) > 0;
	question = "The Unbound have been driven from Gorash-Kel.";
	text1 = "_You are an odd creature, but you have done what our soldiers have been unable to do. Now, at last, we can begin to reclaim the fens._";
	text2 = "He leaves the chamber and soon returns, carrying a breastplate. It is a beautiful piece of work, though Quothe has to blow the dust off. It hasn't been used in many years.";	
	text3 = "_This was mine, in younger days. I will pass it on now, to one who has earned it. Even though you are not one of us. We are very grateful._";
	code = 
		set_flag(12,10,6);
		toggle_quest(53,3);
		award_party_xp(200,30);
		reward_give(57);
	break;
	
begintalknode 178;
	state = 175;
	nextstate = -1;
	condition = 1;
	question = "Why would I be Shaped?";
	text1 = "_There are two ways to obtain magical powers. You can study them, carefully, over years, learning control along with your power._";
	text2 = "_Or they can be written into you in a moment with illegal Shaping. The ability to make life or summon fire could be as much an innate part of you as the ability to raise your arm._";
	text3 = "_This is the dangerous path. Too much of this, and you can go mad._";
	
begintalknode 179;
	state = 175;
	nextstate = -1;
	condition = 1;
	question = "Do you know who I am? Where I am from?";
	text1 = "_I do not know. I tell you this honestly. I do not know, and Astoria does not know either._";
	text2 = "_And, perhaps, it is better that you do not know. Perhaps, you are to be envied. Maybe, in the past, you did things that were better forgotten. Perhaps._";
	
begintalknode 180;
	state = 170;
	nextstate = -1;
	condition = gf(12,2) >= 2 && gf(100,2) >= 3;
	question = "Can I get training?";
	text1 = "_You betrayed Astoria. You will receive no help from me._";
	
begintalknode 181;
	state = 177;
	nextstate = -1;
	condition = 1;
	question = "I want to learn new spells.";
	text1 = "You conclude your training.";	
	code = 
		i = 5;
		if (gf(12,10) > 1)
			i = 3;
		begin_shop_mode("Sage Quothe",
		  "Sage Quothe has been directed to make his nearly limitless knowledge of magic and Shaping available to you. Within reason, of course.",
		  17,i,0);	
	break;
	
begintalknode 182;
	state = 177;
	nextstate = -1;
	condition = 1;
	question = "I want to learn about Shaping.";
	text1 = "You conclude your training.";	
	code = 
		i = 5;
		if (gf(12,10) > 1)
			i = 3;
		begin_shop_mode("Sage Quothe",
		  "Sage Quothe has been directed to make his nearly limitless knowledge of magic and Shaping available to you. Within reason, of course.",
		  18,i,0);	
	break;
	
begintalknode 183;
	state = 177;
	nextstate = -1;
	condition = 1;
	question = "I want to learn about magic.";
	text1 = "You conclude your training.";	
	code = 
		i = 5;
		if (gf(12,10) > 1)
			i = 3;
		begin_shop_mode("Sage Quothe",
		  "Sage Quothe has been directed to make his nearly limitless knowledge of magic and Shaping available to you. Within reason, of course.",
		  19,i,0);	
	break;
	
begintalknode 184;
	state = 177;
	nextstate = -1;
	condition = gf(12,2) >= 12;
	question = "I want advanced training.";
	text1 = "You conclude your training.";	
	code = 
		i = 6;
		if (gf(12,10) > 1)
			i = 4;
		begin_shop_mode("Sage Quothe",
		  "Sage Quothe has been directed to make his nearly limitless knowledge of magic and Shaping available to you. Within reason, of course.",
		  63,i,0);	
	break;

begintalknode 185;
	state = 177;
	nextstate = 170;
	condition = 1;
	question = "I want to discuss something else.";
	text1 = "_All right._";
	
begintalknode 186;
	state = 178;
	nextstate = 170;
	condition = 1;
	question = "Never mind.";
	text1 = "_Perhaps wise. What else do you want to discuss?_";
	
begintalknode 187;
	state = 178;
	nextstate = -1;
	condition = 1;
	question = "I am ready. Get this thing out of me.";
	text1 = "Sage Quothe directs you to a nearby stone table. You lie on it. He restrains you with ropes. _Please try to be calm. This is going to be agonizingly painful._ His bedside manner leaves something to be desired.";
	text2 = "He bares your chest. He extends his withered, bony hand and touches the tool. He concentrates for a moment. The tool lets out a long, shrill squeal. Then it shrivels up.";
	text3 = "It is more or less at this point that the agony starts. You feel as if a massive hand is squeezing your chest. Your life blood leaks out through a tiny hole in your heart.";
	text4 = "But Quothe is prepared. With a smooth motion, he slides the tool out of you, being careful not to leave any bits behind. Then he puts a hand on the hole, concentrates, and Shapes you. The hole in your heart closes. The wound seals up.";
	text5 = "Then he unties you. _You will need some time to recover. I feel fortunate. My subjects usually don't survive that._";
	text6 = "With a contemptuous flip of his hand, he throws the tool into the trash. You feel horribly weak, but you are free.";
	action = END_TALK;
	code =
		sf(100,8,1);
		alter_stat(3,-1);
		award_party_xp(100,20);
	break;

// Masha

begintalknode 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Masha";
	text1 = "There is a lovely woman here, probably in her mid-thirties. She is pacing around the lovely subterranean garden Astoria has provided. She is beautiful, but something about her looks strange.";
	text2 = "Then, when she sees you, she greets you, and you find that her accent is completely foreign too. _I am Masha, of the Sholai. Are you a new visitor? A new prisoner here? I am eager for new people to talk to._";
	text5 = "Masha sits on a bench and looks around at the odd flora with distaste. _I must leave here soon, or I will go mad. Be trapped in another city, yes?_";
	action = INTRO;

begintalknode 191;
	state = 190;
	nextstate = 191;
	condition = 1;
	question = "Who are the Sholai?";
	text1 = "_We are a different people. Our lands are far over the sea. We have sent envoys to visit you. We are very different from you. We speak a different language, though I have learned yours. More or less._";
	text2 = "_We want peace with you. Though now, with your war, we are just watching._";
	
begintalknode 192;
	state = 191;
	nextstate = -1;
	condition = 1;
	question = "Where are your lands?";
	text1 = "_Over the ocean, many days by sea. Your people have not visited us. You have been occupied with your own wars._";

begintalknode 193;
	state = 191;
	nextstate = -1;
	condition = 1;
	question = "Do you have Shapers?";
	text1 = "_We had never heard of your arts before the first of us visited. The first of us to come here became ... involved in those arts. I do not know the details, but it was difficult._";
	text2 = "_Since then, things have been better. We are interested in Shaping, but we do not want to do it. It seems to make things ... unstable._";
	
begintalknode 194;
	state = 191;
	nextstate = -1;
	condition = 1;
	question = "What are you watching?";
	text1 = "_We track the war. You are our neighbors across the sea. We are interested in what happens to you._";
	text2 = "_Also, we wait to see who wins or survives. Those who live are who we will need to deal with. I mean no offense._";
	
begintalknode 195;
	state = 190;
	nextstate = 192;
	condition = 1;
	question = "You are a prisoner here?";
	text1 = "_Do not misunderstand. I am not a prisoner of Astoria. I am a prisoner of Terrestia. Trapped here for years. Looking for way to go home._";
	text2 = "";
	
begintalknode 196;
	state = 192;
	nextstate = -1;
	condition = 1;
	question = "How did you become trapped?";
	text1 = "_This was years ago, near beginning of rebellion. My boat landed at city of Poryphra. Lovely city in Burwood Province, to east. In ruins now._";
	text2 = "_I left to travel. While I was gone, rebels destroyed city. My boat had bad fortune of sinking. Now I wait for Sholai to send new expedition that can take me home._";
	
begintalknode 197;
	state = 192;
	nextstate = 193;
	condition = 1;
	question = "So what are you doing while you are here?";
	text1 = "_Diplomacy. I travel as far as I can. I meet all I can. I assure that Sholai are peaceful. We want no part on either side. We just have hope._";
	
begintalknode 198;
	state = 193;
	nextstate = -1;
	condition = 1;
	question = "Hope of what?";
	text1 = "_Someday when war ends, when madness ends, we can trade and have peace. Small thing to ask, but we hope._";
	
begintalknode 199;
	state = 190;
	nextstate = -1;
	condition = gf(12,2) > 0 && gf(12,2) < 6;
	question = "Do you know anything about Baston?";
	text1 = "_Not really. I tried to talk to him, like I am talking to you. I wanted to speak with a new person. He was very quiet, though. He spent much of his time in there._";
	text2 = "She points at the nearest door to the northwest.";

	
	


// MAIN CONTROLS

begintalknode 210;
	state = -1;
	nextstate = 210;
	condition = 1;
	question = "Name";
	text1 = "The Shapers here are doing many things. Making creations. Controlling them. Experimentally modifying them. This takes a lot of energy, magical power drawn from crystal spires somewhere in the Haria-Kel.";
	text2 = "The power is carried through a conduit that loops through the entire complex. The flow of energy is regulated by this device.";
	text3 = "The device, oddly for Shaper work, is almost entirely mechanical. There are several levers, switches, and dials. It is far too complicated for you to understand. If you tried to use it, you'd probably just blow yourself up.";
	text4 = "The device, oddly for Shaper work, is almost entirely mechanical. There are several levers, switches, and dials. Although you don't know exactly how they work, you get the basic idea. You could probably make some small changes.";
	code =
		if (get_stat(21) < 8)
			rs(4);
			else rs(3);
	break;

begintalknode 211;
	state = 210;
	nextstate = -1;
	condition = get_stat(21) >= 8 && gf(12,23) != 1 && gf(12,23) != 2;
	question = "Reduce the power flow.";
	text1 = "You identify the correct dial and turn it down slightly. Not enough to be immediately noticed by the Shapers but enough to make a difference. Devices powered by the energy will be weaker now.";
	text2 = "This isn't a permanent change. It's only a matter of time before the alteration is noticed and corrected.";
	action = END_TALK;
	code =
		sf(12,23,1);
	break;
	
begintalknode 212;
	state = 210;
	nextstate = -1;
	condition = get_stat(21) >= 8 && gf(12,23) != 0 && gf(12,23) != 2;
	question = "Return the power flow to normal.";
	text1 = "With ease, you correct the changes you made before. There is now no sign that the machine was tinkered with.";
	action = END_TALK;
	code =
		sf(12,23,0);
	break;

begintalknode 213;
	state = 210;
	nextstate = -1;
	condition = get_stat(21) >= 8 && get_stat(21) < 11 && gf(12,23) != 2;
	question = "Increase the power flow.";
	text1 = "You identify the correct dial and try to turn up the power, raising it to a dangerous level. There is a honking noise. Then a pause. Then the dial turns itself back.";
	text2 = "You don't understand the controls well enough to figure out what happened or how to increase the flow.";
	
begintalknode 214;
	state = 210;
	nextstate = -1;
	condition = get_stat(21) >= 11 && gf(12,23) != 2 && (gf(12,20) == 0 || gf(12,21) == 0 || gf(12,22) == 0);
	question = "Increase the power flow.";
	text1 = "You identify the correct dial and try to turn up the power, raising it to a dangerous level. There is a honking noise. Then a pause. Then the dial turns itself back.";
	text2 = "You try again, this time identifying and pulling the lever that overrides the safety mechanism. At first, you think that you have succeeded. However, there is no change in the power flow.";
	text3 = "There must be devices in place elsewhere in the complex to keep the power flow limited. Until these are all found and disabled, you won't be able to sabotage the device.";
	text4 = "To avoid suspicion, you return the dial to its previous position.";
		
begintalknode 215;
	state = 210;
	nextstate = 211;
	condition = get_stat(21) >= 11 && gf(12,23) != 2 && gf(12,20) > 0 && gf(12,21) > 0 && gf(12,22) > 0;
	question = "Increase the power flow.";
	text1 = "You identify the correct dial and try to turn up the power, raising it to a dangerous level. There is a honking noise. Then a pause. Then the dial turns itself back.";
	text2 = "You try again, this time identifying and pulling the lever that overrides the safety mechanism. There is a subtle but noticeable change in the power flow.";
	text3 = "You can now send a massive surge of power through the system. This would, however, cause a great deal of disruption. And anger. Are you sure you want to do this?";
	
begintalknode 216;
	state = 211;
	nextstate = -1;
	condition = 1;
	question = "Turn the dial back.";
	text1 = "You reset the dial to its old position. The power flow returns to its previous state.";
	action = END_TALK;
	
begintalknode 217;
	state = 211;
	nextstate = -1;
	condition = 1;
	question = "Cause a power surge.";
	text1 = "You send a flood of power into the system. The effect is instant and dramatic. All through the complex, you hear showers of sparks, explosions, and screams. Smoke fills the air.";
	text2 = "Guards run around madly, looking for intruders. The Shapers try to get their experiments under control. Crystal devices spray energy in all directions, burning everyone nearby.";
	text3 = "You have created a great deal of chaos. You have a little bit of time before they identify and fix the source of the disruption.";
	action = END_TALK;
	code =
		make_zone_hostile();
		sf(12,23,2);
	break;
	
begintalknode 218;
	state = 210;
	nextstate = -1;
	condition = gf(12,23) == 2;
	question = "Change the power level.";
	text1 = "When you get close to the device, it shoots out a spray of sparks. You jump back just in time to keep from being burned. You broke it, but you won't be the one to fix it.";
	action = END_TALK;

begintalknode 219;
	state = 210;
	nextstate = -1;
	condition = 1;
	question = "Leave the device alone.";
	text1 = "You leave the dangerous and complicated device alone for now.";
	action = END_TALK;

// DEVICE 1 

begintalknode 230;
	state = -1;
	nextstate = 230;
	condition = 1;
	question = "Name";
	text1 = "This contraption of metal and crystal sits on top of the conduit like a spider.";
	text2 = "It seems to control the power flow, though you aren't sure how. It's pretty complicated.";
	text3 = "It is obviously here as a safety mechanism. It limits the flow of power through the conduits.";
	code =	
	 	if (get_stat(21) < 9)
	 		rs(3);
	 		else rs(2);
	 break;
	 
begintalknode 231;
	state = 230;
	nextstate = -1;
	condition = gf(12,20) == 0 && get_stat(21) >= 9;
	question = "Disable the device. (Use 1 living tool.)";
	text1 = "You don't have a living tool.";
	text2 = "You insert the tool into a delicate juncture in the device. There is a squeal and a puff of smoke. The device is deactivated.";
	text3 = "This isn't a permanent change. It's only a matter of time before the alteration is noticed and corrected.";
	action = END_TALK;
	code =
		if (has_item(255) == 0) {
			rs(2); rs(3);
			}
			else {
				rs(1); take_item(255);
				sf(12,20,1);
				}
	break;
	
begintalknode 232;
	state = 230;
	nextstate = -1;
	condition = 1;
	question = "Leave the device alone.";
	text1 = "Doesn't seem to be anything useful to do here. You leave.";
	action = END_TALK;

// DEVICE 2 

begintalknode 235;
	state = -1;
	nextstate = 235;
	condition = 1;
	question = "Name";
	text1 = "This contraption of metal and crystal sits on top of the conduit like a spider.";
	text2 = "It seems to control the power flow, though you aren't sure how. It's pretty complicated.";
	text3 = "It is obviously here as a safety mechanism. It limits the flow of power through the conduits.";
	code =	
	 	if (get_stat(21) < 9)
	 		rs(3);
	 		else rs(2);
	 break;
	 
begintalknode 236;
	state = 235;
	nextstate = -1;
	condition = gf(12,21) == 0 && get_stat(21) >= 9;
	question = "Disable the device. (Use 1 living tool.)";
	text1 = "You don't have a living tool.";
	text2 = "You insert the tool into a delicate juncture in the device. There is a squeal and a puff of smoke. The device is deactivated.";
	text3 = "This isn't a permanent change. It's only a matter of time before the alteration is noticed and corrected.";
	action = END_TALK;
	code =
		if (has_item(255) == 0) {
			rs(2); rs(3);
			}
			else {
				rs(1); take_item(255);
				sf(12,21,1);
				}
	break;
	
begintalknode 237;
	state = 235;
	nextstate = -1;
	condition = 1;
	question = "Leave the device alone.";
	text1 = "Doesn't seem to be anything useful to do here. You leave.";
	action = END_TALK;

// DEVICE 3 

begintalknode 240;
	state = -1;
	nextstate = 240;
	condition = 1;
	question = "Name";
	text1 = "This contraption of metal and crystal sits on top of the conduit like a spider.";
	text2 = "It seems to control the power flow, though you aren't sure how. It's pretty complicated.";
	text3 = "It is obviously here as a safety mechanism. It limits the flow of power through the conduits.";
	code =	
	 	if (get_stat(21) < 9)
	 		rs(3);
	 		else rs(2);
	 break;
	 
begintalknode 241;
	state = 240;
	nextstate = -1;
	condition = gf(12,22) == 0 && get_stat(21) >= 9;
	question = "Disable the device. (Use 1 living tool.)";
	text1 = "You don't have a living tool.";
	text2 = "You insert the tool into a delicate juncture in the device. There is a squeal and a puff of smoke. The device is deactivated.";
	text3 = "This isn't a permanent change. It's only a matter of time before the alteration is noticed and corrected.";
	action = END_TALK;
	code =
		if (has_item(255) == 0) {
			rs(2); rs(3);
			}
			else {
				rs(1); take_item(255);
				sf(12,22,1);
				}
	break;
	
begintalknode 242;
	state = 240;
	nextstate = -1;
	condition = 1;
	question = "Leave the device alone.";
	text1 = "Doesn't seem to be anything useful to do here. You leave.";
	action = END_TALK;

// powder case

begintalknode 250;
	state = -1;
	nextstate = 250;
	condition = 1;
	question = "Name";
	text1 = "This case is full of a huge variety of powders, extracts, herbs, and useful substances. It's every alchemist's fondest dream.";
	text2 = "Each vial and jar has a label on it. However, the labels don't give the names of the components. Instead, they bear odd combinations of letters and numbers. Thus, you can't properly identify anything.";
	text3 = "However, you do soon find, on a high shelf, the four vials Denna asked you to steal.";
	code =
		if ((gf(12,6) > 0) || (gf(11,14) != 1))
			rs(3);
	break;
	
begintalknode 251;
	state = 250;
	nextstate = -1;
	condition = gf(12,6) == 0 && gf(11,14) == 1 && dist_to_nav_point(16,0) <= 5 && gf(11,1) == 0;
	question = "Steal the vials.";
	text1 = "Alas, as you are starting to carefully transfer his supplies from his case to your pouch, Quothe sees you.";
	text2 = "After your earlier criminal activity, Haria-Kel has had enough of you. He shouts an alarm.";
	text3 = "He says, _Since you have been well behaved so far, I will not have to guards kill you. Do not steal from my lab again._";
	text4 = "You did not have time to get the vials.";
	action = END_TALK;
	code =
		change_crime_level(4);
		if (get_crime_level() >= 5)
			rs(3);
			else rs(2);
	break;
	
begintalknode 252;
	state = 250;
	nextstate = -1;
	condition = gf(12,6) == 0 && gf(11,14) == 1 && (dist_to_nav_point(16,0) > 5 || gf(11,1) > 0);
	question = "Steal the vials.";
	text1 = "You quickly and carefully transfer the supplies from his case to your pouch. The vials are well sealed, so no powder leaks out and kills you.";
	action = END_TALK;
	code =
		sf(12,6,1);
		set_spec_item(13,1);
	break;
	
begintalknode 253;
	state = 250;
	nextstate = -1;
	condition = 1;
	question = "Close the case.";
	text1 = "These ingredients are valuable, but only if identified. You close the case.";
	action = END_TALK;

// ASTORIA SPIRE 1

begintalknode 260;
	state = -1;
	nextstate = 260;
	condition = 1;
	question = "";
	text1 = "Councilor Astoria's throne is flanked by two large pieces of Shaper machinery, each tied directly into the power conduits. Each has a large, single crystal, held suspended in a steel framework.";
	text2 = "When you get close, the crystal pulses with a wave of light and searing heat. You jump back. Astoria smiles. _Please stay away from there._";
	text3 = "Astoria uses them to defend herself. This one glows and lets out constant waves of searing heat. You can't get close enough to affect it.";
	text4 = "However, thanks to your earlier sabotage, it is not operating at top efficiency.";
	text5 = "Astoria uses them to defend herself. This one glows and lets out constant waves of searing heat. However, the power flow is uneven. If you timed it right, you could get close enough to smash the central crystal.";
	text6 = "The crystal has a large crack in it.";
	code =
		clear_strings();
		as(1);
		if ((char_ok(8)) && (get_attitude(8) < 10))
			as(2);
			else if (gf(12,18) > 0)
				as(6);
				else if (gf(12,23) < 2) {
					as(3);
					if (gf(12,23) == 1)
						as(4);
					}
					else as(5);
	break;
	
begintalknode 261;
	state = 260;
	nextstate = -1;
	condition = char_ok(8) && get_attitude(8) >= 10 && gf(12,23) == 2 && gf(12,18) == 0;
	question = "Break the crystal.";
	text1 = "You strike the crystal with your weapon. It created a tiny hairline crack in the crystal. The next time Astoria sends a surge of power through it, the damage might be enough to cause a catastrophic failure.";
	action = END_TALK;
	code =
		sf(12,18,1);
	break;
	
begintalknode 262;
	state = 260;
	nextstate = -1;
	condition = 1;
	question = "Leave the spiral alone.";
	text1 = "You back away from the dangerous device.";
	action = END_TALK;

// ASTORIA SPIRE 2

begintalknode 265;
	state = -1;
	nextstate = 265;
	condition = 1;
	question = "";
	text1 = "Councilor Astoria's throne is flanked by two large pieces of Shaper machinery, each tied directly into the power conduits. Each has a large, single crystal, held suspended in a steel framework.";
	text2 = "When you get close, the crystal pulses with a wave of light and searing heat. You jump back. Astoria smiles. _Please stay away from there._";
	text3 = "Astoria uses them to defend herself. This one glows and lets out constant waves of searing heat. You can't get close enough to affect it.";
	text4 = "However, thanks to your earlier sabotage, it is not operating at top efficiency.";
	text5 = "Astoria uses them to defend herself. This one glows and lets out constant waves of searing heat. However, the power flow is uneven. If you timed it right, you could get close enough to smash the central crystal.";
	text6 = "The crystal has a large crack in it.";
	code =
		clear_strings();
		as(1);
		if ((char_ok(8)) && (get_attitude(8) < 10))
			as(2);
			else if (gf(12,19) > 0)
				as(6);
				else if (gf(12,23) < 2) {
					as(3);
					if (gf(12,23) == 1)
						as(4);
					}
					else as(5);
	break;
	
begintalknode 266;
	state = 265;
	nextstate = -1;
	condition = char_ok(8) && get_attitude(8) >= 10 && gf(12,23) == 2 && gf(12,19) == 0;
	question = "Break the crystal.";
	text1 = "You strike the crystal with your weapon. It created a tiny hairline crack in the crystal. The next time Astoria sends a surge of power through it, the damage might be enough to cause a catastrophic failure.";
	action = END_TALK;
	code =
		sf(12,19,1);
	break;
	
begintalknode 267;
	state = 265;
	nextstate = -1;
	condition = 1;
	question = "Leave the spiral alone.";
	text1 = "You back away from the dangerous device.";
	action = END_TALK;

// Sergeant Flesch

begintalknode 270;
	state = -1;
	nextstate = 270;
	condition = 1;
	question = "Name";
	text1 = "This woman's insignia mark her as a sergeant in the Shaper army. She's not one of Astoria's soldiers, though. She is sitting in the guest quarters, and she looks miserable.";
	text2 = "When she sees you, her mood perks up right away. _You ... You are the one who has been traveling around? The new one from the mountains? I'm Sergeant Flesch. I need some help, so I can go home. I can pay._";
	text5 = "Sergeant Flesch sits and stares at the pool. She nudges one of the odd mushrooms with her toe. _Still stuck here. Still waiting,_ she mutters.";
	action = INTRO;

begintalknode 271;
	state = 270;
	nextstate = 271;
	condition = 1;
	question = "Where are you from?";
	text1 = "_I'm from the Nodye Coast, to the west, over the mountains. One of the old provinces. I wish I could return._";

begintalknode 272;
	state = 270;
	nextstate = 274;
	condition = 1;
	question = "Why are you stuck here?";
	text1 = "_I was traveling to the Foundry. The Shaper I served under had developed a new sort of ornk. A smart ornk. I know. Why would we need that? But, somehow, he made it. He gave it to me._";
	text2 = "_Then I lost it._";
	text3 = "_Now I'm waiting for it to come back. I hope it does. I'm in real trouble if it doesn't._";
	text4 = "_Now it is gone._";
	code =
		rs(4);
		if (gf(12,11) < 2)
			rs(3);
			else rs(2);
		if (gf(33,1) == 1) {
			rs(2); rs(3); as(4);
			}
	break;
	
begintalknode 273;
	state = 270;
	nextstate = -1;
	condition = 1;
	question = "How did you hear of me?";
	text1 = "_Always lots of gossip going around. It's the war. Makes everyone nervous. Makes them want to find out all they can. Information can be soothing, even if it's wrong._";
		
begintalknode 274;
	state = 271;
	nextstate = -1;
	condition = 1;
	question = "What is it like there?";
	text1 = "_It is beautiful. Not like this backwater. No offense. Huge cities. Glorious, gleaming towers. No monsters. No rogues. Actual culture._";
	text2 = "_It is what the Mera-Tev will be like in a few centuries. I hope to go back soon._";
		
begintalknode 275;
	state = 271;
	nextstate = 272;
	condition = 1;
	question = "Has the war reached there?";
	text1 = "_Not yet, thankfully. Alwan and Astoria have managed to hold off the vile rebel hordes. We send plenty of wealth and soldiers and creations to fight, but our cities haven't been ruined yet._";
	text2 = "_Which is a very good thing. I worry about how well we would fight._";
		
begintalknode 276;
	state = 272;
	nextstate = -1;
	condition = 1;
	question = "Why do you worry?";
	text1 = "_The Nodye Coast has not known war for centuries. The people there are very ... sophisticated. Our leader, Councilor Sharissa, is wise, but she ..._";
	text2 = "She shakes her head. _I don't wish to criticize the Shapers. It is not wise._";
		
begintalknode 277;
	state = 274;
	nextstate = 275;
	condition = gf(12,11) < 2;
	question = "Go on.";
	text1 = "_It was smart. It tricked me. It acted all dumb and normal. Then, one night, I went to sleep and left it tied up. It undid the knots somehow. It ran off. I tracked it until it got close to the swamps southeast of here, and then I lost it._";
	text2 = "_I won't survive out in that swamp by myself. It's rebel lands. That is why I need help. I need someone to track down the ornk for me. I can pay. Honestly, I can._";

begintalknode 278;
	state = 275;
	nextstate = -1;
	condition = 1;
	question = "What good is a smart ornk?";
	text1 = "_I don't know,_ she wails. _The Shaper said it was just experimenting on different sorts of brains. He said that the ornk just provided a good template. I don't know what any of that means!_";
	text2 = "_He wanted it taken to the Foundry. So that's what I was doing._";
		
begintalknode 279;
	state = 275;
	nextstate = -1;
	condition = 1;
	question = "What would have happened to the ornk at the Foundry?";
	text1 = "_I think they were going to kill and dissect it. I felt bad about it at first. Now? I feel pretty good about it._";

begintalknode 280;
	state = 275;
	nextstate = -1;
	condition = gf(12,11) < 2;
	question = "If I see your ornk, I'll try to get it back to you.";
	text1 = "_Could you? I would be in your debt. It's brown with a white spot on the side. If you look it in the eye, you will see a cunning intelligence. It's hard to explain. You'll know it when you see it._";
	text2 = "_If you find it, I'll be here. I have nowhere else to go._";
	code = 
		set_flag(12,11,1);
		toggle_quest(54,1);
	break;
	
begintalknode 281;
	state = 275;
	nextstate = -1;
	condition = gf(12,11) == 0;
	question = "Well, good luck to you.";
	text1 = "_You can't help me? Well, why should you, I suppose. Good luck to you too._";
	action = END_TALK;
								
begintalknode 282;
	state = 270;
	nextstate = -1;
	condition = gf(12,11) == 1 && gf(33,1) == 1;
	question = "I found your ornk. It was rogue livestock. It had to be put down.";
	text1 = "The sergeant looks relieved. _Well, that is good for me, I suppose. I didn't kill it. Someone else did. My Shaper won't punish me too much. I hope._";
	text2 = "_I am grateful to you. Here is payment. I was given this for the mission._ She gives it to you. _I won't be punished for giving it away for this. I'd have to give it back anyway._";
	text3 = "_Soon I can go home. Back to civilization. What a relief!_";
	code = 
		set_flag(12,11,2);
		toggle_quest(54,3);
		award_party_xp(200,10);
		reward_give(130);
	break;					
	
begintalknode 283;
	state = 270;
	nextstate = -1;
	condition = gf(12,11) == 1 && gf(33,1) == 2;
	question = "I found your ornk. I convinced it to return. It should be back soon.";
	text1 = "The sergeant looks dubious. _Well, I hope it is an ornk of its word. If you find me gone later, it will have come back. If not, I will still be here. Trapped._";
	text2 = "_I am grateful to you for your effort. Here is payment. I was given this for the mission._ She gives it to you. _I won't be punished for giving it away for this. I'd have to give it back anyway._";
	text3 = "_Maybe soon I can go home. Back to civilization. What a relief!_";
	code = 
		set_flag(12,11,2);
		toggle_quest(54,3);
		award_party_xp(200,10);
		reward_give(130);
	break;					
	
begintalknode 284;
	state = 270;
	nextstate = -1;
	condition = gf(12,2) > 0 && gf(12,2) < 6;
	question = "Do you know anything about Baston?";
	text1 = "_Nothing. He was quiet. Kept to himself. Spent all his time waiting to see the Councilor in his room. Here._ She points at the door next to where she is sitting.";	
	